home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 8 / The Arsenal Files Collection #8 (Arsenal Computer) (1996).ISO / gen_bbs / inf120x.zip / USER.DOC < prev   
Text File  |  1996-11-09  |  87KB  |  1,982 lines

  1.  
  2.  
  3.       ______              ___________________              ______
  4.       >     |____________| InfoMail/386 1.20 |____________|     <
  5.       ~~||~~|  Centurion |~~~~~~~~~~~~~~~~~~~| 2:2502/666 |~~||~~
  6.         ||   ~~~~~~~~~~~~                     ~~~~~~~~~~~~   ||
  7.         ||                                                   ||
  8.         ||                                                   ||
  9.         ||                                                   ||
  10.         ||                     CENTURION                     ||
  11.         ||                                                   ||
  12.         ||                                                   ||
  13.         ||                        -*-                        ||
  14.         ||                                                   ||
  15.         ||                                                   ||
  16.         ||                 InfoMail/386 1.20                 ||
  17.         ||                                                   ||
  18.         ||       A Document Server for Fidonet Systems       ||
  19.         ||                                                   ||
  20.         ||          Copyright (C) Damian Walker 1996         ||
  21.         ||                                                   ||
  22.         ||                                                   ||
  23.         ||                        -*-                        ||
  24.         ||                                                   ||
  25.         ||                                                   ||
  26.         ||                     USER GUIDE                    ||
  27.         ||                                                   ||
  28.         ||                                                   ||
  29.         ||                        _____                      ||
  30.         ||                       (____()                     ||
  31.         ||                        /   /                      ||
  32.         ||                       /   /                       ||
  33.         ||                      (____()                      ||
  34.         ||                      _______                      ||
  35.         ||                     (_)|||(_)                     ||
  36.         ||                       |||||                       ||
  37.         ||                       |||||                       ||
  38.         ||                       |||||                       ||
  39.         ||                       |||||                       ||
  40.         ||                       |||||                       ||
  41.         ||                       |||||                       ||
  42.         ||                       |||||                       ||
  43.         ||                      /~~~~~\                      ||
  44.         ||                      ~~~~~~~                      ||
  45.         ||                                                   ||
  46.         ||                                                   ||
  47.         ||                                                   ||
  48.         ||                                                   ||
  49.         ||   ____________                     ____________   ||
  50.       __||__|  Copyright |___________________|    1996    |__||__
  51.       >     |~~~~~~~~~~~~| (C) Damian Walker |~~~~~~~~~~~~|     <
  52.       ~~~~~~              ~~~~~~~~~~~~~~~~~~~              ~~~~~~
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61. InfoMail/386 1.20 User Guide
  62.  
  63. 1.      INTRODUCTION
  64.  
  65.         Welcome to InfoMail/386 1.20!  This file is the user guide,
  66.         which acts as a step-by-step tutorial on setting up a sample
  67.         InfoMail installation.  You are encouraged to print out this
  68.         part of the manual and follow the instructions, especially if
  69.         you don't have experience of earlier versions of InfoMail.
  70.  
  71.         To complement this file, there is a user reference document and
  72.         a developer's guide.  There are also files containing a full
  73.         table of contents for all the documentation, and an alphabetic
  74.         index referencing pages in all the document files.
  75.  
  76. 1.1.    What is InfoMail?
  77.  
  78.         InfoMail/386 1.20 is a document server for Fidonet systems.  It
  79.         scans your netmail directory for messages addressed to it, and
  80.         performs some action based on those messages.
  81.  
  82.         Its basic function is to send out documents which the user has
  83.         requested.  A document is usually in the form of a text file,
  84.         which can be sent in the body of a reply to the user who
  85.         requested the document.
  86.  
  87.         A secondary function is to allow users to alter documents
  88.         remotely, via netmail.  This allows users who cannot run
  89.         InfoMail themselves to have their own documents hosted at
  90.         another system.
  91.  
  92.         As an extension to its basic function, this version of InfoMail
  93.         also allows users to conduct a simple search of the document
  94.         list, so that users can find documents on subjects that interest
  95.         them.  This is especially useful to systems with a large number
  96.         of documents.
  97.  
  98.         There are many uses which InfoMail can be put to.  It has been
  99.         used to send out BBS information, echo descriptions and rules,
  100.         reviews of games, FAQ documents and even a price list.  The
  101.         number of other uses which may be found for it are limited only
  102.         by the imagination.
  103.  
  104.         ****************************************************************
  105.         This program is in the public domain.  This means that the
  106.         program can be distributed and used, for an unlimited period,
  107.         free of charge.  If you find InfoMail useful, the author would
  108.         be interested to hear from you.  Your views on the program, and
  109.         the uses you may find for it, are valuable information.
  110.         ****************************************************************
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120. Introduction                                                        U- 2
  121. InfoMail/386 1.20 User Guide
  122.  
  123.         Although the program name and code is protected by copyright,
  124.         the author would be pleased to see similar programs appearing
  125.         for the PC and other platforms.  Should you as an author wish to
  126.         write your own document server, feel free to use the data
  127.         structures, addressing methods and macros which InfoMail uses.
  128.         Feel free also to use 'InfoMail', 'InfoMail Update' and
  129.         'InfoMail Search' as the default names for your program to
  130.         answer to.  The author is more interested in InfoMail as a
  131.         widespread idea than as a vehicle for presonal fame and (!)
  132.         fortune.
  133.  
  134. 1.2.    System Requirements
  135.  
  136.         This version of InfoMail has been written for DOS-based IBM PC
  137.         compatibles with an 80386 processor or better.  This is a
  138.         limitation of the author's compiler, rather than a deliberate
  139.         attempt to restrict the systems on which the program will run.
  140.  
  141.         At the time of writing, users of 286s and slower machines may
  142.         use InfoMail 1.11, which is still supported.  If you wish to see
  143.         a new version of InfoMail for 8086-based systems or 286's, let
  144.         the author know.  If there is enough demand, an 8086 version of
  145.         the program will appear.
  146.  
  147.         InfoMail should run on any type of text screen used with
  148.         mainstream PC's.  It was developed on a VGA system which has had
  149.         both colour and monochrome monitors connected during
  150.         development.  It has yet to be tested with a true monochrome
  151.         (Hercules/MDA) system.  The program knows nothing of 80x43 or
  152.         80x50 text modes, and the full-screen configuration utilities
  153.         will only use the top half of an 80x50 screen.
  154.  
  155.         In order to be useful, InfoMail must be used at a Fidonet system
  156.         which uses a *.MSG netmail directory.  This includes FrontDoor,
  157.         Terminate, and also static mailers such as BinkleyTerm and Xenia
  158.         if these mailers are used with a mail processor supporting *.MSG
  159.         message areas.
  160.  
  161.         The program also requires a DPMI server to be present.  It is
  162.         supplied with CWSDPMI, a free DPMI server created for the DJGPP
  163.         compiler and programs developed with it.  If your operating
  164.         system does not have its own DPMI server for DOS sessions (e.g.
  165.         DOS), CWSDPMI.EXE must be in the current directory or the DOS
  166.         path in order for InfoMail to be run.
  167.  
  168. 1.3.    Disclaimer
  169.  
  170.                           **** IMPORTANT ****
  171.  
  172.         No warranty or guarantee is provided with this program.  While
  173.         the author has attempted to ensure that the program is fully
  174.         operational and bug-free, no responsibility can be taken by the
  175.         author in the event that damage or inconvenience is caused by
  176.         the program.  Run InfoMail at your own risk.
  177.  
  178.  
  179.  
  180. Introduction                                                        U- 3
  181. InfoMail/386 1.20 User Guide
  182.  
  183. 1.4.    Acknowledgements
  184.  
  185.         Thanks go to the following people for their help in the ongoing
  186.         development of InfoMail:
  187.  
  188.         Bill Welch (ex 2:254/222), for beta testing version 1.00.
  189.  
  190.         Bill Birrell (2:2504/200), for beta testing versions 1.00, 1.10,
  191.         1.11 and 1.20, and for general programming help in the C echo.
  192.  
  193.         Steven Holme (2:2503/201), for beta testing versions 1.00, 1.10
  194.         and 1.20, and for some useful suggestions.
  195.  
  196.         Jim O'Neill (2:256/68), for beta testing version 1.10.
  197.  
  198.         Martyn Wilkins (2:442/608), for promoting version 1.00 in
  199.         echomail, and for beta testing versions 1.10, 1.11 and 1.20.
  200.  
  201.         Peter Barley (2:2502/666.15), for beta testing versions 1.00,
  202.         1.10, 1.11 and 1.20, and for many useful suggestions.
  203.  
  204.         Andy Altoft (2:2502/666.2107), for beta testing versions 1.00
  205.         and 1.10.
  206.  
  207.         Peter Burnett (2:441/80), for some useful suggestions, and for
  208.         beta testing versions 1.11 and 1.20.
  209.  
  210.         Joaquim Homrighausen (2:202/330), for hatching versions 1.00 and
  211.         1.11 on SDSFRONT, thus attracting interest in the program from
  212.         across the world.  Also thanks must go to Joaquim for allowing
  213.         his interface design to be used for this and previous releases
  214.         of InfoMail.
  215.  
  216.         Kev Baillie (2:2502/1), for beta testing versions 1.11 and 1.20,
  217.         and for many useful suggestions for 1.20 and future releases of
  218.         InfoMail.
  219.  
  220.         Colin Spice (2:440/7), for beta testing version 1.20.
  221.  
  222.         Ronald Troost (2:285/709), for beta testing version 1.20.
  223.  
  224. 1.5.    Version History
  225.  
  226.         Version 1.00, original InfoMail, with the following features:
  227.         - Alterable name and address
  228.         - Universal kill flag for outgoing messages
  229.         - 8-character document names
  230.         - Posts documents up to 8k in size
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240. Introduction                                                        U- 4
  241. InfoMail/386 1.20 User Guide
  242.  
  243.         Version 1.10, first upgrade release, with these additions:
  244.         - Global header and footer files for outgoing messages
  245.         - 16-character document names
  246.         - Document access counter
  247.         - Macros for use in headers, footers and documents
  248.         - Secret (unlisted) documents
  249.         - Expanded subject line for outgoing messages
  250.         - Optional kill and other message flags for each document
  251.         - Remote maintenance of documents (passworded for security)
  252.         - Posts documents up to 16k in size
  253.         - Automatic upgrade facility
  254.         - Increased speed of document posting
  255.         - A couple of aesthetic minor interface bugs fixed
  256.         - A 386 version of the program
  257.  
  258.         Version 1.11
  259.         - Document List display bug corrected
  260.         - Some errors in the documentation were corrected
  261.  
  262.         Version 386 1.20
  263.         - Configurable log filename
  264.         - Configurable message size up to 64k
  265.         - Ability to split large documents into multiple messages
  266.         - Option to keep outgoing error messages and notices
  267.         - A document list search utility
  268.         - Options to keep various types of inbound message
  269.         - All outgoing messages are sysop-configurable
  270.         - Multiple AKA's per installation
  271.         - Indexed (sorted) document list
  272.         - Request passwords for added security
  273.         - Secondary document messages (useful for held file attaches)
  274.         - Optional monochrome 'colour' scheme
  275.         - Some extra macros, including two document list macros
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300. Introduction                                                        U- 5
  301. InfoMail/386 1.20 User Guide
  302.  
  303. 2.      SETTING UP INFOMAIL
  304.  
  305.         The procedure for initially setting up InfoMail will vary,
  306.         depending upon whether you are installing the program for the
  307.         first time, or upgrading from a previous version.  This section
  308.         deals with the former case, and assumes that you are starting
  309.         from scratch.  A later section deals with the procedure for
  310.         upgrading.
  311.  
  312.         Before setting up InfoMail for the first time it is necessary to
  313.         create a new directory for the program and extract the contents
  314.         of the distribution archive into it.  Since you are reading
  315.         this, it is assumed that you have already got that far.
  316.  
  317.         Then you must ensure that you have a DPMI server set up.  If
  318.         your operating system doesn't offer a DPMI server for DOS
  319.         sessions, or you have disabled it, then you can use CWSDPMI
  320.         which is supplied in the archive.  Simply copy CWSDPMI.EXE into
  321.         a directory on your path; InfoMail will then find it and load it
  322.         each time INFOMAIL.EXE is run.  See the reference guide section
  323.         9.1.2 for further details about CWSDPMI.
  324.  
  325.         The examples in this tutorial use the directory name C:\INFOMAIL
  326.         as an example; you will have to adjust all references to this
  327.         directory to match whatever directory you are already using for
  328.         the program.
  329.  
  330.         To begin with, a simple installation of the program is all that
  331.         is necessary; none of the frills need be used.  This will be
  332.         enough for you to see the program working and get a feel for how
  333.         the separate components work, before proceeding to make use of
  334.         some of the more complex aspects of the program.
  335.  
  336. 2.1.    The Configuration Editor
  337.  
  338.         The first component of the program to visit is the configuration
  339.         editor.  Assuming that you are in the C:\INFOMAIL directory,
  340.         type the following at the command prompt:
  341.  
  342.                 INFOMAIL CONFIG
  343.  
  344.         Captialisation is unimportant in this, and all, aspects of
  345.         InfoMail.  After you have pressed <RETURN>, you should be
  346.         presented with the main configuration editor screen, which is
  347.         centred upon a window like the following:
  348.  
  349.  
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360. Setting Up InfoMail                                                 U- 6
  361. InfoMail/386 1.20 User Guide
  362.  
  363.         ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  364.         ▒╒═══════════════════════════════════════════════════════════╕▒▒
  365.         ▒│  Netmail  .\                                              │░▒
  366.         ▒│ Log File  .\INFOMAIL.LOG                                  │░▒
  367.         ▒│   Active  Yes  Max Msg Size  16384  Kill Outb Errors  Yes │░▒
  368.         ▒│ Requests  InfoMail             Kill Inbound Requests  Yes │░▒
  369.         ▒│  Updates  InfoMail Update      Kill Inbound  Updates  Yes │░▒
  370.         ▒│ Searches  InfoMail Search      Kill Inbound Searches  Yes │░▒
  371.         ▒│   Header                                                  │░▒
  372.         ▒│   Footer                                                  │░▒
  373.         ▒│ Doc List                                                  │░▒
  374.         ▒│ File Err                                                  │░▒
  375.         ▒│ Inactive                                                  │░▒
  376.         ▒│   Accept                                                  │░▒
  377.         ▒│   Reject                                                  │░▒
  378.         ▒│  Results                                                  │░▒
  379.         ▒│ AKA List                                                  │░▒
  380.         ▒╘═══════════════════════════════════════════════════════════╛░▒
  381.         ▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒
  382.         ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  383.  
  384.         As you load the configuration editor for the first time, it
  385.         creates the file INFOMAIL.CFG in your InfoMail directory, and
  386.         writes to it the default settings shown in the window above.
  387.         But since the default settings do not provide a complete and
  388.         workable installation, there are a few details you have to
  389.         supply yourself.
  390.  
  391. 2.1.1.  Netmail Directory
  392.  
  393.         The first field you will have to change is the very top one,
  394.         labelled 'Netmail'.  The prompt at the bottom of the screen
  395.         tells you that this is your *.MSG netmail directory.  Unless you
  396.         are planning on running InfoMail while in your netmail
  397.         directory, you will have to change this field from the default
  398.         setting.  If your netmail directory is C:\FD\MAIL, you would
  399.         enter C:\FD\MAIL in this field.
  400.  
  401.         Notice that the current version of InfoMail supports only *.MSG
  402.         type netmail areas.  If you currently use a Hudson or JAM area
  403.         for your netmail, you will have to change to *.MSGs before you
  404.         attempt to use the program.
  405.  
  406. 2.1.2.  Log File
  407.  
  408.         The default settings also use the current directory as a
  409.         starting point for the log file.  Although the current directory
  410.         is C:\INFOMAIL at the moment, this probably won't be the case
  411.         when you come to run InfoMail as a regular part of your setup.
  412.         So the 'Log File' field will have to be changed to explicitly
  413.         show the full pathname of your log file.
  414.  
  415.  
  416.  
  417.  
  418.  
  419.  
  420. Setting Up InfoMail                                                 U- 7
  421. InfoMail/386 1.20 User Guide
  422.  
  423.         Assuming you want your log file to reside in the InfoMail
  424.         directory, this field should contain 'C:\INFOMAIL\INFOMAIL.LOG'.
  425.         Note that the file doesn't have to be called INFOMAIL.LOG; some
  426.         sysops like to append the logs of all their software onto the
  427.         same file.
  428.  
  429. 2.1.3.  AKA List
  430.  
  431.         The only other field that needs changing in the configuration
  432.         editor is the AKA List.  When you first install InfoMail there
  433.         are no addresses stored, since the program has no idea what your
  434.         Fidonet addresses are.
  435.  
  436.         To add your address, select the 'AKA List' label.  This will
  437.         take you to a submenu, which contains options for adding and
  438.         deleting addresses to the list.  No edit option is provided; to
  439.         change an address you must delete the old address and add a new
  440.         one.
  441.  
  442.         To add an address, press INS as the prompt at the foot of the
  443.         screen indicates.  Then a cursor appears and you can enter a 4D
  444.         Fidonet address; for Centurion this would be 2:2502/666.  Enter
  445.         your address here, and press ENTER.  The AKA List menu will
  446.         reappear.
  447.  
  448.         If you have further addresses you want to add to InfoMail, do it
  449.         now.  InfoMail can cope with as many AKAs as will fit in memory,
  450.         but it will only display as many as can fit on the screen beside
  451.         the 'AKA List' label.  So if you have a lot of AKA's, make sure
  452.         you're entering them correctly.
  453.  
  454.         If you make a mistake while adding your AKAs, or you want to
  455.         delete an AKA for another reason, press DEL on the AKA List menu
  456.         and type in the address you want to delete.  It will then
  457.         disappear from the AKA list.
  458.  
  459.         Once you have finished adding addresses, press ESC to exit the
  460.         AKA List menu.
  461.  
  462. 2.1.4.  Other Fields to Edit
  463.  
  464.         Now you have done all you need to do in the Configuration
  465.         Editor.  However, there are a few fields which will not be
  466.         revisited later in this tutorial, so they will be explained
  467.         here.
  468.  
  469.         The 'Requests', 'Updates' and 'Searches' fields define the names
  470.         that InfoMail will answer to.  It is recommended that you leave
  471.         these as they are, in order to maintain some sort of standard
  472.         from the users' point of view; most current installations of
  473.         InfoMail 1.11 around the world answer to the names of 'InfoMail'
  474.         and 'InfoMail Update'.
  475.  
  476.  
  477.  
  478.  
  479.  
  480. Setting Up InfoMail                                                 U- 8
  481. InfoMail/386 1.20 User Guide
  482.  
  483.         However, if you really want to change these names then it is
  484.         simply a case of changing the relevant fields on the
  485.         configuration screen.  If you want to do something silly such as
  486.         using the same name for all three, then the Request name would
  487.         take precedence over the other two names, with the Update name
  488.         coming next; i.e. if you change these fields to:
  489.  
  490.         ▒│ Requests  SillyServer                   Kill Inbound  Yes │░▒
  491.         ▒│  Updates  SillyServer                   Kill Inbound  Yes │░▒
  492.         ▒│ Searches  SillyServer                   Kill Inbound  Yes │░▒
  493.  
  494.         then InfoMail will accept a message to 'SillyServer' as a
  495.         document request.  If the 'Requests' field were then changed to
  496.         something else, then a message to 'SillyServer' would be taken
  497.         as a document update.
  498.  
  499. 2.1.5.  Exiting the Configuration Editor
  500.  
  501.         To exit from the configuration editor just press ESC.  Any
  502.         changes to the configuration will be saved to the file
  503.         INFOMAIL.CFG when before the command prompt reappears.
  504.  
  505. 2.2.    Setting Up Documents
  506.  
  507.         Your next task in getting InfoMail up and running is to define
  508.         one or more documents, since a document server without any
  509.         documents could hardly be regarded as useful.  The tool for this
  510.         job is the Document List Editor, which is invoked by typing:
  511.  
  512.                 INFOMAIL LIST
  513.  
  514.         at the command prompt.  Upon issuing this command, you will be
  515.         presented with a screen of which the central window resembles
  516.         the following:
  517.  
  518.         ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  519.         ▒╒═══════════════════════════════════════════════════════════╕▒▒
  520.         ▒│ X Document         Subject                                │▒▒
  521.         ▒│                                                           │░▒
  522.         ▒│                                                           │░▒
  523.         ▒│                                                           │░▒
  524.         ▒│                                                           │░▒
  525.         ▒│                                                           │░▒
  526.         ▒│                                                           │░▒
  527.         ▒│                                                           │░▒
  528.         ▒│                                                           │░▒
  529.         ▒│                                                           │░▒
  530.         ▒│                                                           │░▒
  531.         ▒╘═══════════════════════════════════════════════════════════╛░▒
  532.         ▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒
  533.         ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  534.  
  535.  
  536.  
  537.  
  538.  
  539.  
  540. Setting Up InfoMail                                                 U- 9
  541. InfoMail/386 1.20 User Guide
  542.  
  543.         The first time you load the Document List Editor, two files will
  544.         be created: INFOMAIL.DAT and INFOMAIL.NDX.  These are the
  545.         document list files.  The document list is always sorted
  546.         alphabetically, hence the presence of an index file
  547.         INFOMAIL.NDX.  Currently the document list is empty.
  548.  
  549. 2.2.1.  Adding a Document
  550.  
  551.         The procedure for adding a document is very easy-- just press
  552.         INS.  A blank document record will appear, looking something
  553.         like this:
  554.  
  555.         ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  556.         ▒╒═══════════════════════════════════════════════════════════╕▒▒
  557.         ▒│ Document  ░░░░░░░░░░░░░░░░                                │░▒
  558.         ▒│  Active?                                                  │░▒
  559.         ▒│  Listed?                                                  │░▒
  560.         ▒│  Macros?                                                  │░▒
  561.         ▒│  Routing                                                  │░▒
  562.         ▒│  Subject                                                  │░▒
  563.         ▒│   Status                                                  │░▒
  564.         ▒│  Request                                                  │░▒
  565.         ▒│   Update                                                  │░▒
  566.         ▒│     File                                                  │░▒
  567.         ▒│ 2nd File                                                  │░▒
  568.         ▒│ Accesses                                                  │░▒
  569.         ▒╘═══════════════════════════════════════════════════════════╛░▒
  570.         ▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒
  571.         ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  572.  
  573.         InfoMail is waiting for you to enter a name for the new
  574.         document.  At this point your options are twofold.  You can
  575.         press ESC or ENTER (leaving the document name blank), in which
  576.         case you will be returned to the document list window without
  577.         having added a document.
  578.  
  579.         A far more sensible option is to enter a document name here and
  580.         now.  There is a sample document supplied with the InfoMail
  581.         archive, which will be used to illustrate the procedure. For
  582.         want of a better name, call this document 'Sample' (without the
  583.         quotes).  Once you have entered the document name, some default
  584.         field values appear, and you can alter the values of some of the
  585.         fields.
  586.  
  587. 2.2.2.  Subject Line
  588.  
  589.         The first field to change for this example is the 'Subject'
  590.         field.  This is the subject line which will grace outbound
  591.         messages containing this document, each time it is requested.
  592.         At the very least, it should contain the name of the document,
  593.         but since it is independent of the document name it can contain
  594.         something a little more descriptive.  For this example, enter 'A
  595.         sample document' as the subject.
  596.  
  597.  
  598.  
  599.  
  600. Setting Up InfoMail                                                 U-10
  601. InfoMail/386 1.20 User Guide
  602.  
  603. 2.2.3.  Document Filename
  604.  
  605.         You will need to tell InfoMail where it can find the document
  606.         file itself, for when it comes to post it in response to a
  607.         user's request.  This is what the 'File' field is for, and it
  608.         should contain the full path and filename of the document text
  609.         file. The sample file supplied is called DOCUMENT.SAM, so you
  610.         should enter C:\INFOMAIL\DOCUMENT.SAM as the document filename.
  611.  
  612. 2.2.4.  Saving the Document Record
  613.  
  614.         The subject and filename are the only two fields which need to
  615.         be altered in order to set up a document; for the time being,
  616.         all the other fields can be left as they are. To save the
  617.         document record simply press ESC.  InfoMail will save an
  618.         incomplete record (for later completion, perhaps) if you press
  619.         ESC before having entered all the necessary fields.
  620.  
  621.         For a bit of practice, set up another document.  Call this one
  622.         what you like, and give it any subject line that takes your
  623.         fancy.  When you come to enter the filename, make sure the file
  624.         doesn't yet exist; i.e. don't try to use an existing text file
  625.         on your system for this example.  This document entry will be
  626.         used to illustrate how to build up a document text file.  The
  627.         examples in this document will assume the name 'MyDocument' has
  628.         been used, with the description 'My Example Document' and the
  629.         filename 'C:\INFOMAIL\MY.DOC'.
  630.  
  631. 2.2.5.  Editing and Deleting Documents
  632.  
  633.         To edit a document after you've saved it, you just highlight its
  634.         entry in the document list window and press ENTER.  The document
  635.         record will reappear, and you can alter the fields in the same
  636.         manner as when you first entered the record.  Note that the
  637.         document name cannot be edited on an existing document record.
  638.  
  639.         Deleting and undeleting documents is easy.  If you want to try
  640.         out an example, add another document record to play with.  Since
  641.         you're just going to delete the document, you don't really need
  642.         to enter a subject line or filename for it.
  643.  
  644.         To delete a document record, highlight its entry in the document
  645.         list and press DEL.  An asterisk (*) will appear next to the
  646.         document name, signifying that the record is to be deleted.
  647.         Pressing DEL again will remove the asterisk, thus providing an
  648.         undelete function.
  649.  
  650. 2.2.6.  Exiting the Document List Editor
  651.  
  652.         To exit the Document List Editor just press ESC while browsing
  653.         the document list window.  All records have already been saved
  654.         before you reach this point, since they are saved and sorted as
  655.         you finish entering the details of each record.
  656.  
  657.  
  658.  
  659.  
  660. Setting Up InfoMail                                                 U-11
  661. InfoMail/386 1.20 User Guide
  662.  
  663.         It is at this point that any records you have marked as deleted
  664.         are removed permanently, so be careful when deleting a lot of
  665.         records.  There is no separate 'purge' or 'pack' option for the
  666.         document list, it's all done each time you exit the Document
  667.         List Editor.
  668.  
  669. 2.3.    Creating Document Text Files
  670.  
  671.         InfoMail documents are standard ASCII text files.  You can use
  672.         any text file of up to 64k in size as an InfoMail document, and
  673.         often InfoMail is used as a means of distribution of existing
  674.         documents such as BBS bulletins or files available for FReq,
  675.         rather than having documents created specifically for it.
  676.  
  677.         If you have been following the examples so far, you should have
  678.         two documents set up.  One, 'Sample', already has a text file;
  679.         if you want to see it, then view the file DOCUMENT.SAM using a
  680.         text editor or the DOS TYPE command. The other document, named
  681.         'MyDocument' for the sake of the following examples, does not
  682.         yet have a text file, and it is this example which this section
  683.         will deal with.
  684.  
  685.         The first thing to do is to create the text file for this
  686.         example.  Edit the file MY.DOC (or whatever filename you have
  687.         chosen), and put in some text.  You could import some text from
  688.         an existing file if you like.
  689.  
  690.         There is nothing special about InfoMail document text files.
  691.         They use standard ASCII carriage return/linefeed pairs, and may
  692.         use any characters which your network allows in netmail
  693.         messages.  There are some tips for more effective-looking
  694.         documents, though.
  695.  
  696.         The first of these involves the way that Fidonet message editors
  697.         read, display and (sometimes) write messages.  Fidonet messages
  698.         are reformatted in real time by message readers.  This allows
  699.         the margins of a single message to differ on each recipient's
  700.         screen, depending on the individual recipient's display size and
  701.         software setup.
  702.  
  703.         Because of this, most good message editors only include a
  704.         carriage return only at the end of a paragraph, rather than at
  705.         the end of each line.  The message reader will automatically
  706.         word wrap the paragraphs when the message is received.
  707.  
  708.         Since text files used by InfoMail are destined to end up as
  709.         Fidonet messages, they may make use of this facility.  If you
  710.         are creating a text file which is used exclusively as a document
  711.         for a document server, it may be a good idea to format the file
  712.         with each paragraph on a single line.
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720. Setting Up InfoMail                                                 U-12
  721. InfoMail/386 1.20 User Guide
  722.  
  723.         Such a text file would look ugly in most DOS text editors, and
  724.         it may be necessary to reformat the file with a CR/LF at the end
  725.         of each line while editing, removing the extra CR/LFs before you
  726.         save the text.  If you don't edit the file that often then you
  727.         may find it worth the effort to produce a better looking result
  728.         at the users' end.
  729.  
  730.         Kludge lines may be included in document text files if you feel
  731.         the need.  For example, you may like to preserve the character
  732.         set used for users whose message readers support this feature.
  733.         Kludges should be included as they are in normal messages, i.e.
  734.         with the ASCII character 1 (smiley face) as the first character
  735.         on the line.
  736.  
  737.         You may find it entertaining to try and confuse InfoMail by
  738.         including addressing information kludges in your document text
  739.         file.  However, all addressing kludges and the PID will be
  740.         replaced by corrected kludges in the outgoing message when the
  741.         document comes to be posted.
  742.  
  743. 2.4.    Testing out Your Installation
  744.  
  745.         Assuming you've followed the steps so far, you should have a
  746.         ready-to-use configuration with your address(es), netmail
  747.         directory and log filename set up, you should have two documents
  748.         in the document list, and both documents should have a text file
  749.         ready to post.  So all that's needed now is to try out the
  750.         program and see how (if?) it works.
  751.  
  752.         In order to test the setup properly, you'll need to have a
  753.         message waiting for InfoMail to pick up.  So load your message
  754.         editor and enter the following netmail:
  755.  
  756.         ================================================================
  757.         By: <your name>, <your address>
  758.         To: InfoMail, <your address>
  759.         Re: Sample
  760.         ----------------------------------------------------------------
  761.         <whatever you like here>
  762.         ================================================================
  763.  
  764.         This is the format of an InfoMail request message.  If you've
  765.         changed the 'Request' name in the configuration editor, then the
  766.         new name you supplied should go in the 'To:' field, in place of
  767.         'InfoMail'.  The address in the 'To:' field should be one of the
  768.         addresses in the AKA list, and the message body of a document
  769.         request is ignored, so you can put anything you like in there.
  770.  
  771.         Note: It's a bad idea to leave the message body completely blank
  772.         when you're requesting a document from another system, since
  773.         some mailers and mail processors delete netmails which lack
  774.         text, before other programs get to see them.
  775.  
  776.  
  777.  
  778.  
  779.  
  780. Setting Up InfoMail                                                 U-13
  781. InfoMail/386 1.20 User Guide
  782.  
  783.         Once you've saved the message, you can exit from the message
  784.         editor and run InfoMail's netmail scan.  Assuming you are back
  785.         in the C:\INFOMAIL directory, type the following at the command
  786.         prompt:
  787.  
  788.                 INFOMAIL SCAN
  789.  
  790.         This is the heart of InfoMail, where the program actually does
  791.         the job it was designed for.  If you've entered the request
  792.         message correctly, you should see the following message appear
  793.         on the screen:
  794.  
  795.                 * Processing request from <your name>, <your address>
  796.  
  797.         When InfoMail has scanned all the netmails in your netmail
  798.         directory, the message '* Finished!' should appear and the
  799.         command prompt should return.  If you reload your message
  800.         editor, you should see that InfoMail has posted the following
  801.         message in response to your request:
  802.  
  803.         ================================================================
  804.         By: InfoMail/386 1.20, <your address>
  805.         To: <your name>, <your address>
  806.         Re: A Sample Document
  807.         ----------------------------------------------------------------
  808.         Welcome to InfoMail/386 1.20!
  809.  
  810.         This is a sample document created for the tutorial in the User
  811.         Guide.  Please see the user guide for more details.
  812.         ================================================================
  813.  
  814.         Try repeating the procedure for the second document you set up
  815.         in the Document List Editor.  Assuming everything works
  816.         correctly, you are now ready to add InfoMail to your batch files
  817.         as a fully functioning part of your system.
  818.  
  819. 2.5.    Running InfoMail Regularly
  820.  
  821.         The exact procedures here will differ from system to system.  If
  822.         you are a point, you will either want to run InfoMail manually,
  823.         or if you are using a system based on batch files then you will
  824.         want to add InfoMail to your polling batch file.
  825.  
  826.         If you are a node then you should run InfoMail automatically--
  827.         either once per day in your daily maintenance, or after each
  828.         call when mail is received.  The latter method is used at the
  829.         author's system, meaning that incoming document requests are
  830.         dealt with immediately.
  831.  
  832.         Either way, it would be useful to be able run InfoMail from
  833.         outside its own directory.  InfoMail provides for this
  834.         possibility in two ways. The first way is using a -PATH switch
  835.         on the command line.  The way to use the path switch is as
  836.         follows:
  837.  
  838.  
  839.  
  840. Setting Up InfoMail                                                 U-14
  841. InfoMail/386 1.20 User Guide
  842.  
  843.                 INFOMAIL SCAN -PATH C:\INFOMAIL
  844.  
  845.         This assumes that the C:\INFOMAIL directory is in your path; if
  846.         not then the full pathname to INFOMAIL.EXE would be required, as
  847.         in:
  848.  
  849.                 C:\INFOMAIL\INFOMAIL SCAN -PATH C:\INFOMAIL
  850.  
  851.         The -PATH switch can also be used in conjunction with the LIST
  852.         and CONFIG commands, allowing the configuration editor and the
  853.         document list editor to be loaded from outside InfoMail's own
  854.         directory.
  855.  
  856.         However, the -PATH parameter makes cumbersome command lines, so
  857.         an alternative method is provided for running InfoMail from
  858.         outside its own directory, and this is more in line with other
  859.         comms-related programs.  This method is the INFOMAIL environment
  860.         variable.  In your AUTOEXEC.BAT, or at some other time before
  861.         you run infomail, you would set the INFOMAIL environment
  862.         variable as follows:
  863.  
  864.                 SET INFOMAIL=C:\INFOMAIL
  865.  
  866.         If the -PATH switch is omitted from the INFOMAIL command line,
  867.         then the program looks for the INFOMAIL environment variable in
  868.         order to locate the config and document list files.
  869.  
  870.         Note that the -PATH switch overrides the environment variable.
  871.         Note also that filenames of documents and the log file are not
  872.         affected by either -PATH or the INFOMAIL environment variable;
  873.         you still need to enter a full path for those.
  874.  
  875.         One more command line parameter which is useful for all parts of
  876.         InfoMail (i.e. the SCAN, LIST, CONFIG and UPGRADE commands) is
  877.         the -MONO switch.  Adding this to any valid InfoMail command
  878.         line will cause the program to use a 'colour' set which is more
  879.         appropriate to display on monochrome screens.
  880.  
  881.         Once you have put InfoMail in your mail system's batch file, it
  882.         will be fully operational, and the initial setup is complete. It
  883.         will respond to document requests from other systems in the same
  884.         way as it responded to your own requests. Perhaps now is a good
  885.         time to replace 'Sample' and 'MyDocument' with some genuinely
  886.         useful documents.
  887.  
  888. 2.6.    Upgrading InfoMail
  889.  
  890.         This section is exclusively for those who are upgrading from a
  891.         previous version of InfoMail.  If you've installed InfoMail from
  892.         scratch, you will want to skip this section.
  893.  
  894.         If you are upgrading from a previous version of InfoMail, there
  895.         is a utility included with the package to allow you to set up
  896.         InfoMail/386 1.20 quickly and easily, using your existing
  897.         configuration files from InfoMail 1.00, 1.10 or 1.11.
  898.  
  899.  
  900. Setting Up InfoMail                                                 U-15
  901. InfoMail/386 1.20 User Guide
  902.  
  903.         Before upgrading your setup, it is advisable that you make a
  904.         full backup of your existing InfoMail directory.  A simple copy
  905.         operation to a temporary directory will do the trick, or perhaps
  906.         you would like to archive your existing installation for a
  907.         longer term so that you can ensure your InfoMail/386 1.20 setup
  908.         works correctly over a period of time.
  909.  
  910.         After you have backed up your directory, remove all the standard
  911.         InfoMail files apart from INFOMAIL.CFG and INFOMAIL.DAT.  Unless
  912.         you have extra files in the directory (such as headers, footers
  913.         or documents) the easiest way to do this is to delete everything
  914.         and copy the two files named above back into your InfoMail
  915.         directory.
  916.  
  917.         Now is the time to unpack the InfoMail/386 1.20 archive into
  918.         your InfoMail directory.  Once this is done, you're ready to run
  919.         the InfoMail upgrade utility.  Type the following at the command
  920.         line:
  921.  
  922.                 INFOMAIL UPGRADE
  923.  
  924.         If all goes well, you should see three messages on the screen.
  925.         The first tells you that the configuration file is being
  926.         upgraded.  The second tells you that the document list file is
  927.         being upgraded; if you have a lot of documents then this could
  928.         take some time.  The final message tells you that the process is
  929.         finished.
  930.  
  931.         This upgrade procedure upgrades your existing setup almost
  932.         exactly, but you may need to alter the log file settings.
  933.  
  934.         If, before running INFOMAIL UPGRADE, you have used the -PATH
  935.         parameter to direct InfoMail to its data files, as described in
  936.         a previous section, or you have an INFOMAIL environment variable
  937.         set up, then your log file should take its pathname from this,
  938.         and InfoMail will add to the existing log file.
  939.  
  940.         If you didn't use -PATH or the INFOMAIL environment variable
  941.         then the log file will always be written to whatever the current
  942.         directory is when InfoMail is run.  In this case, you have to
  943.         put a full path name in the 'Log File' field.  To load the
  944.         configuration editor, type:
  945.  
  946.                 INFOMAIL CONFIG
  947.  
  948.         and select the 'Log File' field label.  You will now be given an
  949.         opportunity to enter a more acceptable log filename, such as
  950.         C:\INFOMAIL\INFOMAIL.LOG.  Once you have set the log filename,
  951.         press ESC to exit from the configuration editor.
  952.  
  953.         The next change you have to make is to the InfoMail command
  954.         line in your batch files, as the syntax has been changed for
  955.         this version.  You should implement the following changes in
  956.         batch files and any other place you call InfoMail:
  957.  
  958.  
  959.  
  960. Setting Up InfoMail                                                 U-16
  961. InfoMail/386 1.20 User Guide
  962.  
  963.                 What was...             Becomes...
  964.                 -Pdirectory             -PATH directory
  965.                 -S                      CONFIG
  966.                 -L                      LIST
  967.                 -U                      UPGRADE
  968.                 -?                      <nothing>
  969.                 <nothing>               SCAN
  970.  
  971.         Notice that INFOMAIL by itself now displays help, and to run a
  972.         netmail scan you need to issue the command INFOMAIL SCAN.  See
  973.         also the added -MONO switch discussed in section 2.1.5.
  974.  
  975.         Apart from these small details, the upgrade procedure creates an
  976.         installation of InfoMail/386 1.20 which directly imitates the
  977.         earlier version of the program, and doesn't take advantage of
  978.         any of the more advanced features of InfoMail/386 1.20.
  979.  
  980.         The following sections of this manual, which deal with those
  981.         more advanced features, will be useful for first-time users and
  982.         upgrading users alike.
  983.  
  984.  
  985.  
  986.  
  987.  
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994.  
  995.  
  996.  
  997.  
  998.  
  999.  
  1000.  
  1001.  
  1002.  
  1003.  
  1004.  
  1005.  
  1006.  
  1007.  
  1008.  
  1009.  
  1010.  
  1011.  
  1012.  
  1013.  
  1014.  
  1015.  
  1016.  
  1017.  
  1018.  
  1019.  
  1020. Setting Up InfoMail                                                 U-17
  1021. InfoMail/386 1.20 User Guide
  1022.  
  1023. 3.      MORE CONTROL OVER YOUR DOCUMENTS
  1024.  
  1025.         This section deals with some of the more advanced features of
  1026.         InfoMail, concerning the behaviour of individual documents, and
  1027.         the display of their contents to remote users.
  1028.  
  1029. 3.1.    Creating Secret Documents
  1030.  
  1031.         Sometimes it is desirable or necessary to create documents which
  1032.         are for restricted viewing, or which should only be approached
  1033.         from certain channels such as references in another document on
  1034.         your system.  This subsection deals with creating such
  1035.         documents.
  1036.  
  1037. 3.1.1.  Hidden Documents
  1038.  
  1039.         When a user attempts to request a document which is not present
  1040.         on your system, a message is sent in reply telling them that the
  1041.         document they wanted does not exist.  Included in this message
  1042.         as standard is a brief list of documents, hence this particular
  1043.         response is known as the 'Document List'.
  1044.  
  1045.         It is possible to prevent a document appearing in document list.
  1046.         The reasons for doing this are obvious: it ensures that a
  1047.         particular 'secret' document doesn't come to the attention of a
  1048.         casual browser who has stumbled upon the document list.
  1049.  
  1050.         The author uses this facility to esure that certain documents
  1051.         are approached through the 'proper' channels, creating a proper
  1052.         hierarchy of information with designated entry points.  If a
  1053.         user knows the name of a document which is unlisted, they may
  1054.         still request it without requesting the associated listed
  1055.         document, of course.
  1056.  
  1057.         Other sysops use this feature to create secret documents.  The
  1058.         document is unlisted, and its name is known only to those they
  1059.         tell about the document, thus the document name acts as its own
  1060.         password.
  1061.  
  1062.         To flag a document as being hidden from the document list, a
  1063.         field exists in the document list record, labelled 'Listed'.
  1064.         Setting this field to 'No' on a document prevents that
  1065.         particular document from appearing in a document list.
  1066.  
  1067. 3.1.2.  Password Protection
  1068.  
  1069.         Sometimes the above is not enough to prevent sensitive documents
  1070.         from being seen by prying eyes.  Or perhaps for some reason you
  1071.         want to have a listed document which is not available to all and
  1072.         sundry.  In which case, a feature new to InfoMail/386 1.20 is
  1073.         available, which allows you to password protect any document,
  1074.         listed or not.
  1075.  
  1076.  
  1077.  
  1078.  
  1079.  
  1080. More Control over your Documents                                    U-18
  1081. InfoMail/386 1.20 User Guide
  1082.  
  1083.         As with hidden documents, password protection is available via
  1084.         the document list editor, by setting a field in the document
  1085.         list record.  This is labelled 'Request' (not 'Password', since
  1086.         there is another password associated with documents, covered
  1087.         later).
  1088.  
  1089.         Setting the request password means that a password must be
  1090.         supplied on the subject line of a request message, as in the
  1091.         following example:
  1092.  
  1093.         ================================================================
  1094.         By: <your name>, <your address>
  1095.         To: InfoMail, <your address>
  1096.         Re: Sample <password>
  1097.         ----------------------------------------------------------------
  1098.         <whatever you like here>
  1099.         ================================================================
  1100.  
  1101.         If the password is omitted from a request, InfoMail posts an
  1102.         error message informing the user that their request was
  1103.         rejected.
  1104.  
  1105.         Leaving the request password blank means that a password is not
  1106.         required for the document.  So the same error message will be
  1107.         sent to a user who adds a password to a request for a document
  1108.         which doesn't have one.
  1109.  
  1110. 3.2.    Using Expandable Macros
  1111.  
  1112.         A feature available in versions of InfoMail from 1.10 onwards is
  1113.         the availability of expandable macros which may be placed in the
  1114.         document text.  This allows information to be added to documents
  1115.         which might differ each time the document is requested.
  1116.  
  1117.         Macros are surrounded by braces (i.e. '{' and '}'), and consist
  1118.         of a letter and an optional number; the number may come before
  1119.         or after the letter within the macro; InfoMail isn't fussy about
  1120.         this.
  1121.  
  1122.         Including the number in a macro ensures that the macro is always
  1123.         expanded to a constant length, allowing macros to be used in
  1124.         tables without affecting the formatting.  Each particular macro
  1125.         type has a maximum size, and exceeding this size in the length
  1126.         number you include in the individual macro will result in a
  1127.         macro of the maximum size being produced; thus {D23} would
  1128.         produce a 16-character document name.
  1129.  
  1130.         Omitting the length number is more usual for including a macro
  1131.         in normal text.  Since the length of the resulting expanded
  1132.         macro is variable, notice should be taken of the hint in section
  1133.         2.1.3, to include entire paragraphs on one line.  This means
  1134.         that the outgoing document message will be reformatted in an
  1135.         aesthetically pleasing way by the user's message reader.
  1136.  
  1137.  
  1138.  
  1139.  
  1140. More Control over your Documents                                    U-19
  1141. InfoMail/386 1.20 User Guide
  1142.  
  1143.         Note that expanded macro output is never truncated by including
  1144.         a length number.  Thus the document 'MyDocument', when used with
  1145.         a macro {D8} would be output as 'MyDocument' not 'MyDocume'.
  1146.  
  1147.         Macros useful in documents include the program ID, the request
  1148.         name and address for InfoMail, the name and Fidonet address of
  1149.         the user, details about the current document, a document access
  1150.         counter, and even a document list.
  1151.  
  1152.         It is a bad idea to include macros in documents which are also
  1153.         available by file request, or as bulletins for BBS users.  This
  1154.         is because the macros will only be expanded when the message is
  1155.         requested via InfoMail (your BBS software and your file request
  1156.         processor know nothing of InfoMail macros).
  1157.  
  1158. 3.2.1.  Program Information
  1159.  
  1160.         It is simple to include the program name and version in your
  1161.         documents (in this release, 'InfoMail/386 1.20').  The macro for
  1162.         doing this is {P} or {P<number>}, where <number> is in the range
  1163.         1 to 35.
  1164.  
  1165.         The advantage of including this macro instead of the text
  1166.         'InfoMail/386 1.20' in your document is that the macro will
  1167.         change if you upgrade your installation of InfoMail.  Thus a
  1168.         document which has the following in its text file:
  1169.  
  1170.                 Document produced by {P}
  1171.  
  1172.         Would produce the output 'Document sent by InfoMail 1.11' if you
  1173.         were using version 1.11 of InfoMail, but would have changed
  1174.         automatically to 'Document sent by InfoMail/386 1.20' when you
  1175.         upgrade the software.
  1176.  
  1177.         Also available as macros are the request name and the AKA in use
  1178.         by InfoMail for the current message.  These use the macros
  1179.         {I<number>} and {A<number>}, where {I} is the InfoMail request
  1180.         name and {A} is the AKA.  The maximum macro length for the
  1181.         InfoMail request name is 35, and the maximum length of the AKA
  1182.         is 23.  So, in a document containing the following in its text
  1183.         file:
  1184.  
  1185.                 If you send the following message:
  1186.  
  1187.                 ========================================================
  1188.                 To: {I}, {A}
  1189.                 Re: ABOUT
  1190.                 --------------------------------------------------------
  1191.                 (anything in the message body)
  1192.                 ========================================================
  1193.  
  1194.                 then information about this system will be returned to
  1195.                 you via routed netmail.
  1196.  
  1197.  
  1198.  
  1199.  
  1200. More Control over your Documents                                    U-20
  1201. InfoMail/386 1.20 User Guide
  1202.  
  1203.         the 'To:' line would be expanded into something resembling the
  1204.         following:
  1205.  
  1206.                 To: InfoMail, 2:2502/666
  1207.  
  1208.         The address would be the AKA to which the user had sent the
  1209.         request message, so the correct AKA should always be returned
  1210.         for the user's network.
  1211.  
  1212.  
  1213. 3.2.2.  User Details
  1214.  
  1215.         The user's name can be included in the document using the {N} or
  1216.         {N<number>} macro, where <number> ranges from 1 to 35.  The
  1217.         user's full name is used from the incoming request message.
  1218.         Similarly, the user's Fidonet address can be included using the
  1219.         {U} or {U<number>} macro, where {number} ranges from 1 to 23.
  1220.         This allows us to elaborate upon the latest example given in
  1221.         section 3.2.1, as follows:
  1222.  
  1223.                 If you send the following message:
  1224.  
  1225.                 ========================================================
  1226.                 By: {N}, {U}
  1227.                 To: {I}, {A}
  1228.                 Re: ABOUT
  1229.                 --------------------------------------------------------
  1230.                 (anything in the message body)
  1231.                 ========================================================
  1232.  
  1233.                 then information about this system will be returned to
  1234.                 you via routed netmail.
  1235.  
  1236.         If the user 'Damian Walker' of 2:2502/666.3 writes to InfoMail
  1237.         at 2:2502/666, requesting the document above, the document
  1238.         posted in response would contain this:
  1239.  
  1240.                 ========================================================
  1241.                 By: Damian Walker, 2:2502/666.3
  1242.                 To: InfoMail, 2:2502/666
  1243.                 Re: ABOUT
  1244.                 --------------------------------------------------------
  1245.  
  1246.         As well as the full user name, the first and last names of the
  1247.         user can also be included in the document using the {F} and {L}
  1248.         macros respectively.  Each of these macros can contain a
  1249.         constant length of 1 to 35 characters.  As an example, a
  1250.         document could contain the following as its first line:
  1251.  
  1252.  
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258.  
  1259.  
  1260. More Control over your Documents                                    U-21
  1261. InfoMail/386 1.20 User Guide
  1262.  
  1263.                 Hello {F}!
  1264.  
  1265.         in which case the outgoing document would start with:
  1266.  
  1267.                 Hello Damian!
  1268.  
  1269.         if the author had requested a document.  Possible uses of the
  1270.         {L} macro are not as readily apparent, but it was included in
  1271.         the package for the sake of completeness.
  1272.  
  1273. 3.2.3.  Document Record Information
  1274.  
  1275.         Various fields from the document record can be included as
  1276.         document macros.  The most useful example of this is the
  1277.         document name, which is included using the macro {D} or
  1278.         {D<number>}, where <number> ranges from 1 to 16.  The subject
  1279.         line can also be included, using the {S} or {S<number>} macro:
  1280.         <number> in this case ranges from 1 to 71.  In order to
  1281.         illustrate these, look at the following example:
  1282.  
  1283.                 Thank you for requesting document "{D}", entitled "{S}"
  1284.  
  1285.         which would be expanded to something resembling the following in
  1286.         an outgoing document message:
  1287.  
  1288.                 Thank you for requesting document "Sample", entitled "A
  1289.                 Sample Document"
  1290.  
  1291.         In response to a request from an InfoMail user, the operating
  1292.         system filename of the document has been included as a macro as
  1293.         from InfoMail/386 1.20.  This is the {O} or {O<number>} macro,
  1294.         where <number> ranges from 1 to 63.  So the document containing
  1295.         this in its text file:
  1296.  
  1297.                 This is the file {O}
  1298.  
  1299.         might be expanded to
  1300.  
  1301.                 This is the file C:\INFOMAIL\DOCUMENT.SAM
  1302.  
  1303.         in an outgoing document message.
  1304.  
  1305.         The final document-related macro is the access counter.  This
  1306.         corresponds to the 'Accesses' field in the document list record,
  1307.         and it is increased by one each time the document is requested.
  1308.         So as well as letting the sysop know how often a document has
  1309.         been requested, this information can also be relayed to users,
  1310.         using the {C} or {C<number>} macro, where <number> ranges from 1
  1311.         to 5.  Something like:
  1312.  
  1313.  
  1314.  
  1315.  
  1316.  
  1317.  
  1318.  
  1319.  
  1320. More Control over your Documents                                    U-22
  1321. InfoMail/386 1.20 User Guide
  1322.  
  1323.                 This document has been accessed {C} time(s)
  1324.  
  1325.         might expand to
  1326.  
  1327.                 This document has been accessed 15 time(s)
  1328.  
  1329.         in an outgoing document message.  Although the 'Accesses' field
  1330.         cannot be directly edited in the document list editor, it can be
  1331.         reset to 0 simply by select the field.  This is useful when you
  1332.         are requesting a document a number of times to test its initial
  1333.         setup; resetting the access counter to 0 afterwards gives a more
  1334.         accurate count to the user.
  1335.  
  1336. 3.2.4.  Document List
  1337.  
  1338.         Document lists can be included in documents themselves.  This
  1339.         allows you to set up a dedicated 'List' document for example,
  1340.         one which you can advertise to users, but which doesn't include
  1341.         the 'error' overtones of the standard document list response.
  1342.  
  1343.         A standard-style document list as used by InfoMail itself can be
  1344.         included in any document using the {W} macro ({D} already being
  1345.         used for the document name).  Think of {W} meaning 'what' as in
  1346.         'what documents are available'.  Output of the following
  1347.         document:
  1348.  
  1349.                 The following documents are available by sending a
  1350.                 message to {I} and {A} with the document name on the
  1351.                 subject line:
  1352.                 <blank line>
  1353.                 {W}
  1354.                 <blank line>
  1355.                 (end of list)
  1356.  
  1357.         would look something like:
  1358.  
  1359.                 The following documents are available by sending a
  1360.                 message to InfoMail at 2:2502/666 with the document name
  1361.                 on the subject line:
  1362.  
  1363.                         Sample      MyDocument
  1364.  
  1365.                 (end of list)
  1366.  
  1367.         Another macro exists which gives a document name and subject
  1368.         line for each document.  This is the {X} macro (eXpanded list,
  1369.         if you like); replacing the {W} in the previous example with an
  1370.         {X} would create the following output to users requesting the
  1371.         document:
  1372.  
  1373.                 The following documents are available by sending a
  1374.                 message to InfoMail at 2:2502/666 with the document name
  1375.                 on the subject line:
  1376.  
  1377.  
  1378.  
  1379.  
  1380. More Control over your Documents                                    U-23
  1381. InfoMail/386 1.20 User Guide
  1382.  
  1383.                         Sample  A Sample Document
  1384.                     MyDocument  My Example Document
  1385.  
  1386.                 (end of list)
  1387.  
  1388.         This is much more informative as a document list, although the
  1389.         output can be a bit bulky if you have a lot of (listed)
  1390.         documents on line, hence the default document list described in
  1391.         section 3.1.1 uses the {W} macro output.
  1392.  
  1393.         Note that if you include a length number in the {W} or {X}
  1394.         macro, it will be ignored.  The output of these macros is not
  1395.         suitable for inclusion as a single field in a table, so a length
  1396.         number is of no use.
  1397.  
  1398. 3.2.5.  Other Macro Considerations
  1399.  
  1400.         The option to switch macros off is provided, particularly since
  1401.         you may want to use InfoMail to post documents automatically
  1402.         generated by some other piece of software.  If such documents
  1403.         contain brace characters ('{') InfoMail will become confused as
  1404.         it tries to expand them as macros-- unless you set 'Macros' to
  1405.         'No' to prevent macro expansion in that particular document.
  1406.  
  1407.         If you wish to include a left brace in a document over which you
  1408.         have control of the contents, you can do this using the {{}
  1409.         macro (i.e. a left brace within a pair of braces).  Right braces
  1410.         can be used indiscriminately, except within macros.  But since
  1411.         no valid macro contains a right brace character, there is no
  1412.         reason to try and do this anyway.
  1413.  
  1414. 3.3.    File Attaches and Direct Messages
  1415.  
  1416.         In response to requests from InfoMail users, a feature was added
  1417.         to InfoMail 1.10 onwards, to allow file attaches to be created
  1418.         in response to document requests.  Since file attaches can
  1419.         rarely be routed, you also have the option of crashmailing any
  1420.         document response (which could be expensive), or putting it on
  1421.         hold for the requesting user to pick up.
  1422.  
  1423. 3.3.1.  Setting the Status Field for File Attaches
  1424.  
  1425.         To create a file attach, you must make some changes to the
  1426.         document record in the document list editor.  The first field
  1427.         which must be changed is the 'Status' field.  When you edit the
  1428.         Status field, you are presented with six options at the foot of
  1429.         the screen, which are the various message attributes supported
  1430.         by InfoMail.  The main one you are interested for file attaches
  1431.         is 'File', toggled by pressing 'F'.
  1432.  
  1433.         Unless some form of file routing is set in place in your
  1434.         network, you will have to crash the document file attach or put
  1435.         it on hold.  The 'Crash' and 'Hold' attributes provide for this,
  1436.         and may be toggled using the 'C' and 'H' keys respectively.
  1437.  
  1438.  
  1439.  
  1440. More Control over your Documents                                    U-24
  1441. InfoMail/386 1.20 User Guide
  1442.  
  1443.         In addition to this, you will of course have to include the name
  1444.         of the attached file as the 'Subject' field, as is normal
  1445.         Fidonet practice for file attaches.
  1446.  
  1447.         Bear in mind that if you use the {X} macro to create document
  1448.         lists, the filename of the attached file will appear as the
  1449.         subject of the document in the list.  If this looks too ugly for
  1450.         your taste, you could mark the document as unlisted.
  1451.  
  1452.         Although the message is a file attach message, you will still
  1453.         have to create a document text file in addition to whatever file
  1454.         you are attaching.  Treat this as a covering note for the file
  1455.         attach, a message informing the user of the name of file they
  1456.         have just received.
  1457.  
  1458. 3.3.2.  Considerations for File Attaches on Hold
  1459.  
  1460.         If you have created a file attach which will be held for users
  1461.         to pick up, they will want to know when that file is available.
  1462.         This is where the seconary document file comes in.  The '2nd
  1463.         File' field of the document record defines a secondary file
  1464.         which will be posted when the document is requested; this
  1465.         differs from the primary document file in that it is always sent
  1466.         via routed netmail, and it will never contain any attribute
  1467.         other than Pvt, Local, Kill (if Kill is one of the attributes in
  1468.         the Status field).
  1469.  
  1470.         You would use the secondary document to inform users that the
  1471.         file was waiting at your system for pickup.  This prevents them
  1472.         from having to estimate how long their request has taken to
  1473.         reach your system and how often you process InfoMail requests.
  1474.  
  1475.         Another thing to consider about file attaches on hold is that
  1476.         the requesting user may never pick them up.  InfoMail does not
  1477.         currently check outgoing messages, so you will have to scan your
  1478.         netmail directory manually for file attaches which have not been
  1479.         picked up, or use a netmail tool like NetMgr.
  1480.  
  1481. 3.3.3.  Using the Status Field for Other Purposes
  1482.  
  1483.         As well as file attaches, the Status field can be used for file
  1484.         requests or file updates, simply by including the correct
  1485.         attribute in the document record, in conjunction with the Crash
  1486.         or Hold attributes as appropriate.  The uses for including File
  1487.         requests or Update requests as outgoing documents are not
  1488.         exactly obvious, but some enterprising user may come up with
  1489.         some way to use the feature.
  1490.  
  1491.         The other attribute supported by InfoMail is 'Kill'.  Setting
  1492.         'Kill' on a document means that outgoing document messages will
  1493.         have the 'Kill' flag set; this prevents your netmail directory
  1494.         (or 'Sent Netmail' area) from being clogged up by responses from
  1495.         InfoMail.
  1496.  
  1497.  
  1498.  
  1499.  
  1500. More Control over your Documents                                    U-25
  1501. InfoMail/386 1.20 User Guide
  1502.  
  1503. 3.4.    Remotely Updating Documents
  1504.  
  1505.         The remote update is a very useful feature added to InfoMail in
  1506.         version 1.10, allowing remote users to maintain documents on
  1507.         your system.  This is useful in the event that a remote user
  1508.         cannot run InfoMail; perhaps they are a BBS user, they run their
  1509.         mailer on a platform other than the DOS PC, or they use a
  1510.         message area type other than *.MSG for their netmail.
  1511.  
  1512.         All the local sysop has to do is set the document up in the
  1513.         first place.  The document would be set up in the document list
  1514.         editor like any other document, but in addition, a password
  1515.         would be set protecting the document against update by
  1516.         unauthorised users.  The update password is set using the
  1517.         'Update' field in the document list editor, and it acts in a
  1518.         similar fashion to the 'Request' password.  However, lack of an
  1519.         update password does not allow the document to be updated
  1520.         without a password; it prevents the document from being updated
  1521.         at all.  This is how you prevent your normal documents from
  1522.         being updated remotely.
  1523.  
  1524.         To update their document, all the user has to do is send a
  1525.         message like the following:
  1526.  
  1527.         ================================================================
  1528.         By: <user name>, <user address>
  1529.         To: InfoMail Update, 2:2502/666
  1530.         Re: <document> <password>
  1531.         ----------------------------------------------------------------
  1532.         New document contents go in the message body
  1533.         ================================================================
  1534.  
  1535.         'InfoMail Update' is the update name as set up in the
  1536.         configuration editor; if this has been changed, then obviously
  1537.         the new update name should be used instead of 'InfoMail Update'.
  1538.         The address would obviously vary to suit your system.
  1539.  
  1540.         When such an update message is received by InfoMail, the
  1541.         contents of the message body are placed in the document file as
  1542.         named by the 'File' field in the document record.  InfoMail
  1543.         posts a response message when it updates a document, as
  1544.         confirmation to the updating user.  The secondary document file
  1545.         remains unchanged, as does the actual document record; only the
  1546.         contents of the primary document file may be updated in this
  1547.         way.
  1548.  
  1549.         Notice that kludges from the incoming message are included in
  1550.         the document file, including MSGID, TOPT, FMPT, INTL and PID.
  1551.         This is no reason to worry, though.  These are replaced with the
  1552.         correct information by InfoMail when it posts the file to users.
  1553.  
  1554.         The kludges were left in the document file in order that special
  1555.         information such as character sets could be left as the document
  1556.         updater intended; InfoMail 1.10/1.11 would remove all kludges,
  1557.         so such information was lost.
  1558.  
  1559.  
  1560. More Control over your Documents                                    U-26
  1561. InfoMail/386 1.20 User Guide
  1562.  
  1563. 3.5.    Making a Document Temporarily Inactive
  1564.  
  1565.         There are times when you don't want a document on your system to
  1566.         be requested.  Sometimes this is when the information becomes
  1567.         out of date, or you are waiting for a document update to arrive
  1568.         from a remote user before allowing the document to be requested.
  1569.  
  1570.         In the former case, the document could simply be deleted, and
  1571.         reinstated when updated information becomes available.  However,
  1572.         this means that the document record has to be recreated, which
  1573.         could become tiresome if a large number of documents should be
  1574.         inactivated for a period of time.
  1575.  
  1576.         In the latter case the document couldn't be deleted, as an
  1577.         update would then be rejected.  It could be marked as unlisted,
  1578.         but this wouldn't prevent users from requesting the document
  1579.         and, if the first document update hadn't arrived, users would
  1580.         receive a disconcerting error message saying the file is
  1581.         missing.
  1582.  
  1583.         To cover for these eventualities, a document flag 'Active' is
  1584.         available.  When set to 'No', document requests are politely
  1585.         rejected, and the user is informed that the document is
  1586.         temporarily off-line.  When you want to activate the document
  1587.         again, you simply set the 'Active' field to 'Yes'.
  1588.  
  1589.  
  1590.  
  1591.  
  1592.  
  1593.  
  1594.  
  1595.  
  1596.  
  1597.  
  1598.  
  1599.  
  1600.  
  1601.  
  1602.  
  1603.  
  1604.  
  1605.  
  1606.  
  1607.  
  1608.  
  1609.  
  1610.  
  1611.  
  1612.  
  1613.  
  1614.  
  1615.  
  1616.  
  1617.  
  1618.  
  1619.  
  1620. More Control over your Documents                                    U-27
  1621. InfoMail/386 1.20 User Guide
  1622.  
  1623. 4.      MORE CONTROL OF YOUR OVERALL SETUP
  1624.  
  1625.         There are some facilities offered in InfoMail's configuration
  1626.         editor which allow manipulation of the overall behaviour of the
  1627.         program (as opposed to behaviour of individual documents).  This
  1628.         section tells you how to make good use of these.
  1629.  
  1630. 4.1.    Different Log Files
  1631.  
  1632.         Upon loading the configuration editor, you can see that one of
  1633.         the fields is 'Log File'.  This allows you to set the log file
  1634.         for InfoMail to write to.  Note: this field is not optional.  If
  1635.         InfoMail cannot create or open its log file, it will not run.
  1636.         The log file is important in tracking down mistakes in
  1637.         configuration.
  1638.  
  1639.         Some sysops like to combine the log files for all their software
  1640.         into one file.  Other sysops keep separate log files for each
  1641.         piece of software, but all in one directory.  Whatever your
  1642.         preference, you can use the 'Log File' field to set up the log
  1643.         file as whatever file/pathname you want.
  1644.  
  1645.         The InfoMail log file is in a format shared by a number of other
  1646.         Fidonet programs, so combining the log file with that of, say,
  1647.         FrontDoor or RemoteAccess (compact setting) will still produce a
  1648.         log file which is cleanly laid-out and easy to read.
  1649.  
  1650. 4.2.    What to Do with Inbound and Outbound Messages
  1651.  
  1652.         InfoMail offers you the option of whether to kill inbound
  1653.         messages or to mark them as 'Rcvd' after processing.  Separate
  1654.         controls are given for inbound document requests, updates and
  1655.         searches.
  1656.  
  1657.         There are three fields in the configuration editor labelled
  1658.         'Kill Inbound ...', one for requests, one for updates and one
  1659.         for searches.  When one of these is set to 'Yes', inbound
  1660.         messages of the appropriate type are deleted when they have been
  1661.         processed.  If you set one of these to 'No', messages of that
  1662.         type will be kept, and marked as 'Rcvd' (so that InfoMail will
  1663.         not attempt to process them again).  Setting one or more of
  1664.         these fields to 'No' can act as a diagnostic aid, for instance,
  1665.         when users contact you regarding failed requests, updates and
  1666.         searches.
  1667.  
  1668.         Another field is available, entitled 'Kill Outbound Errors'.
  1669.         This allows you to specify whether outgoing messages which are
  1670.         not document messages (such as document lists, update
  1671.         confirmation, search results and error messages) have the 'Kill'
  1672.         flag set.  Again, this is useful as a diagnostic tool, and it
  1673.         allows you to view what the outbound messages look like during
  1674.         the normal use of the program.
  1675.  
  1676.  
  1677.  
  1678.  
  1679.  
  1680. More Control of your Overall Setup                                  U-28
  1681. InfoMail/386 1.20 User Guide
  1682.  
  1683. 4.3.    Message Headers and Footers
  1684.  
  1685.         InfoMail allows you to add a standard header and footer to all
  1686.         your outbound messages, including documents, document lists and
  1687.         all other messages.  You can specify a header and footer file by
  1688.         simply entering the full path and filename of the header and/or
  1689.         footer files in the 'Header' and 'Footer' fields of the
  1690.         configuration editor.
  1691.  
  1692.         If the 'Header' field is left blank, no header file precedes the
  1693.         normal text of outgoing messages.  Similarly, the 'Footer' field
  1694.         can be left blank to prevent a footer from being added to each
  1695.         outgoing message.
  1696.  
  1697.         Headers and footers may contain macros just like documents, so
  1698.         you could include a standard greeting like
  1699.  
  1700.                 Hi {F}!
  1701.                 <blank line>
  1702.  
  1703.         as your header.  These macros are always expanded, regardless of
  1704.         the 'Macros' setting of the document being posted.  The
  1705.         behaviour of some of these macros varies when the outgoing
  1706.         message the header/footer is attached to is not a document (e.g.
  1707.         the {D} macro is not a document name on the document list
  1708.         message, but the name of the non-existent document requested by
  1709.         the user).
  1710.  
  1711. 4.4.    Splitting Large Messages
  1712.  
  1713.         The maximum size of outgoing InfoMail messages is 64k.  However,
  1714.         this is still too large for some systems, so it may be a good
  1715.         idea to limit the outbound message size even further.  This is
  1716.         where the 'Max Message Size' field becomes useful.
  1717.  
  1718.         As default, this is set to 16k (16384), which is often the upper
  1719.         limit of some mail processing software.  It could be argued that
  1720.         this is about the largest message you would want to send via
  1721.         routed netmail, but this limit should not apply to documents
  1722.         sent directly or held for direct pickup.  The option is given
  1723.         to increase this to a value not exceeding 65535, or even to
  1724.         decrease it if your uplink is having trouble with messages of
  1725.         this size.
  1726.  
  1727.         Instead of truncating larger messages, the messages will be
  1728.         split into chunks of whatever you have set the 'Max Message
  1729.         Size' to.  So a document of around 64k would be split into four
  1730.         messages of 16k if the default maximum size is used (not
  1731.         counting kludges, headers and footers).  Documents over 64k will
  1732.         always be truncated, however.
  1733.  
  1734.  
  1735.  
  1736.  
  1737.  
  1738.  
  1739.  
  1740. More Control of your Overall Setup                                  U-29
  1741. InfoMail/386 1.20 User Guide
  1742.  
  1743.         When creating large documents, bear in mind the fact that other
  1744.         systems may decide not to route them.  It might be a good idea
  1745.         to consult your uplink(s) before implementing large documents in
  1746.         InfoMail, or alternatively, send large documents directly or put
  1747.         them on hold.  In this latter instance, a small text file set up
  1748.         as a secondary document could inform users that the main
  1749.         document is ready for direct pickup.
  1750.  
  1751. 4.5.    Customising the Standard Responses
  1752.  
  1753.         After a number of requests from users of InfoMail to allow the
  1754.         document list message to be customised, the facility was added
  1755.         to allow customisation of all outgoing InfoMail errors and
  1756.         non-document responses.  This is the purpose of the fields 'Doc
  1757.         List', 'File Err', 'Inactive', 'Accept', 'Reject' and 'Results'
  1758.         in the configuration editor.
  1759.  
  1760.         To customise one of these messages, simply create a text file
  1761.         with the message you want to send to the user, and include the
  1762.         filename in the relevant field in the configuration editor.  In
  1763.         effect, you are creating 'special' documents which are sent in
  1764.         response to events, rather than normal document requests.
  1765.  
  1766.         Macros are expanded in all response messages, and because of
  1767.         this, some of the standard InfoMail responses deserve more
  1768.         detailed consideration.
  1769.  
  1770. 4.5.1.  Customising the Document List
  1771.  
  1772.         Although the name of this response is 'document list', it is not
  1773.         necessary to post a full document list to users when they
  1774.         request a non-existent document.  This is particularly useful if
  1775.         there are a lot of mistakes made by users requesting documents,
  1776.         or you have a lot of documents on-line.
  1777.  
  1778.         When creating the document list message, the choice is yours if
  1779.         and how you include the document list.  If you want a standard
  1780.         document list, include the {W} macro where you want the document
  1781.         list to appear in the message, as in the following example:
  1782.  
  1783.                 Hello {F}!
  1784.                 <blank line>
  1785.                 The document {D} does not exist!  Check the spelling of
  1786.                 your request message against the following list of
  1787.                 documents:
  1788.                 <blank line>
  1789.                 {W}
  1790.  
  1791.  
  1792.  
  1793.  
  1794.  
  1795.  
  1796.  
  1797.  
  1798.  
  1799.  
  1800. More Control of your Overall Setup                                  U-30
  1801. InfoMail/386 1.20 User Guide
  1802.  
  1803.         Note the inclusion of the {D} macro to represent the document
  1804.         the user tried to access, rather than the name of any particular
  1805.         document in existence (or the name of the document list response
  1806.         itself).  If you want to include subject lines in the document
  1807.         list, use the {X} macro instead of the {W} macro.  This list
  1808.         could become rather large, so it may be a good idea to stick to
  1809.         the {W} macro for this standard response, and use the {X} macro
  1810.         in an actual list document which has to be specially requested,
  1811.         as mentioned in section 3.2.4.
  1812.  
  1813.         If you have such a special document containing a document list,
  1814.         you can omit the document list macro altogether from the
  1815.         'document list' response, and simply direct the user to that
  1816.         specialised list document.  This is more econimical for systems
  1817.         with a large number of documents, and/or a large number of
  1818.         erroneous document requests.
  1819.  
  1820.         The value of the following {C} macro is zero in a document list
  1821.         response, and the {O} (filename) macro is blank.  The {S}
  1822.         (subject) macro in such a response is 'Failed document
  1823.         request/update'.  Other macros retain their usual values.
  1824.  
  1825. 4.5.2.  Customising the Document Search Results
  1826.  
  1827.         The document search facility allows users to post a message to
  1828.         InfoMail asking for a list of documents which contain a certain
  1829.         word in the document tag or the document subject.  The format of
  1830.         an inbound search message is as follows:
  1831.  
  1832.         ================================================================
  1833.         By: <user name>, <user address>
  1834.         To: InfoMail Search, 2:2502/666
  1835.         Re: <searchword>
  1836.         ----------------------------------------------------------------
  1837.         <document body ignored>
  1838.         ================================================================
  1839.  
  1840.         The name 'InfoMail Search' is configurable using the 'search'
  1841.         field in the configuration editor. If the <searchword> contains
  1842.         a space, anything after the space is ignored.  The default
  1843.         search response includes a brief introductory 'your search
  1844.         produced the following documents' type message, and a list of
  1845.         documents in {W} format.
  1846.  
  1847.         You can specify an alternative file using the 'Results' field in
  1848.         the configuration editor.  If you use this file for its normal
  1849.         purpose, then you must include either a {W} or an {X} macro
  1850.         somewhere in the text file, wherever you want the list of
  1851.         documents to appear.  These macros have a slightly altered
  1852.         meaning in this type of output message: the format of the list
  1853.         is the same, but the list will contain only matching entries,
  1854.         rather than a list of all documents.
  1855.  
  1856.  
  1857.  
  1858.  
  1859.  
  1860. More Control of your Overall Setup                                  U-31
  1861. InfoMail/386 1.20 User Guide
  1862.  
  1863.         If you wish for some reason to disable searching, you could
  1864.         specify a text file which contains a brief explanation message
  1865.         along the lines of 'sorry, the document search facility is not
  1866.         available here', which does not include the {W} or {X} macro.
  1867.  
  1868.         In a document search response message, the {D} macro expands to
  1869.         match the search criteria, and the {C} macro expands to the
  1870.         number of matching documents found.  The {O} macro stays blank,
  1871.         and the {S} macro expands to 'Document Search Results'.
  1872.  
  1873. 4.5.3.  Customising the Other Responses
  1874.  
  1875.         Since all the other responses refer to some activity based
  1876.         around a single document file, there is nothing special to
  1877.         consider about the expansion of the macros, with the exception
  1878.         of the subject {S} macro.  This will contain a suitable summary
  1879.         of the purpose of the message, as follows:
  1880.  
  1881.                 File Err        Document file not found
  1882.                 Inactive        Inactive document
  1883.                 Accept          Document update accepted
  1884.                 Reject          Document update/request rejected
  1885.  
  1886.         All other document-related macros ({D}, {O} and {C}) contain the
  1887.         correct information as read from the document record.  So, for
  1888.         instance, the 'File Err' message posted when a document file is
  1889.         missing could contain the text
  1890.  
  1891.                 Please inform the sysop that the file {O} is missing
  1892.  
  1893.         in which case a concientious user could give the sysop all the
  1894.         information needed to correct the situation.
  1895.  
  1896. 4.6.    Inactivating the Setup
  1897.  
  1898.         As with the task of temporarily deactivating a document, it may
  1899.         be desirable to temporarily take the entire InfoMail setup
  1900.         off-line.  The 'Active' field in the configuration editor allows
  1901.         you to do this; set it to 'No' in order to take InfoMail
  1902.         off-line.  All InfoMail processes will function except the
  1903.         netmail scan; running INFOMAIL SCAN with the 'Active' field set
  1904.         to no will cause the program to halt immediately after the
  1905.         'Centurion InfoMail' banner has been displayed.
  1906.  
  1907.         Using this option to take the program off-line prevents the need
  1908.         for hunting down all calls to INFOMAIL.EXE in your batch files
  1909.         or anywhere else you may call the program.
  1910.  
  1911.  
  1912.  
  1913.  
  1914.  
  1915.  
  1916.  
  1917.  
  1918.  
  1919.  
  1920. More Control of your Overall Setup                                  U-32
  1921. InfoMail/386 1.20 User Guide
  1922.  
  1923. 5.      CONCLUSION
  1924.  
  1925.         In the unlikely event that you have followed this user guide
  1926.         from beginning to end, you should have a thorough understanding
  1927.         of how to use the InfoMail program to its full potential, as
  1928.         every aspect of the program has been covered in the tutorial.
  1929.  
  1930.         Other useful documents include the Reference Guide, which you
  1931.         can use to find out the use of the individual configuration
  1932.         settings, document details, macros, program components and the
  1933.         command line.  There is also a Developer's Guide, for people who
  1934.         may want to write programs to interface with InfoMail.  There is
  1935.         an Index which directs you to specific pages in these three
  1936.         document files, and an overall Contents table containing the
  1937.         contents of all the document files (and their filenames).  With
  1938.         all this documentation, there's no excuse for not R'ing TFM...
  1939.  
  1940.         It is hoped that you will find InfoMail useful.  As mentioned
  1941.         earlier in the document, the author would appreciate a netmail
  1942.         from you, saying what you think of the program, and what uses
  1943.         you have found for it.
  1944.  
  1945.         Suggestions for improvement are also welcome; indeed, several of
  1946.         the improvements built into InfoMail since version 1.10 have
  1947.         been things which the author would not have thought to include
  1948.         himself.
  1949.  
  1950.         Version 1.00 has attracted interest around the world, despite
  1951.         the fact that other document servers had already been written.
  1952.         The improvements in version 1.10/1.11 attracted more people to
  1953.         this easy way of distributing information to interested parties,
  1954.         and hopefully this latest version will be just as well received
  1955.         as the other versions were.
  1956.  
  1957.         Although I cannot guarantee that a future version of InfoMail
  1958.         will be released, your ideas for new features will be welcome.
  1959.  
  1960.         Enjoy!
  1961.  
  1962.         Damian Walker, Centurion (2:2502/666), October 1996.
  1963.  
  1964.  
  1965.  
  1966.  
  1967.  
  1968.  
  1969.  
  1970.  
  1971.  
  1972.  
  1973.  
  1974.  
  1975.  
  1976.  
  1977.  
  1978.  
  1979.  
  1980. Conclusion                                                          U-33
  1981.  
  1982.